package com.my.chapter10;

public class practice18 {
    public static void main(String[] args) {
        Outer18.main(args);
    }
}

interface Contents{
    int value();
}

class Outer18{
    private static class ParcelContents implements Contents{
        private int i = 3;

        @Override
        public int value() {
            return i;
        }
    }

    public static Contents contents(){
        return new ParcelContents();
    }

    public static void main(String[] args) {
        Contents c = contents();
        System.out.println(c.value());
    }
}
